home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / oleo-1_4.lha / oleo-1.4 / ref.h < prev    next >
C/C++ Source or Header  |  1993-05-07  |  4KB  |  99 lines

  1. #ifndef REFH
  2. #define REFH
  3.  
  4. /*    Copyright (C) 1992, 1993 Free Software Foundation, Inc.
  5.  
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this software; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19. /*  t. lord    Sun Aug  9 20:45:14 1992    */
  20.  
  21. #include "global.h"
  22. #include "cell.h"
  23.  
  24.  
  25.  
  26. /* Operations that add or remove cells to the sparse array
  27.  * may cause the (memory) addresses of other cells to change.
  28.  * Some cell pointers are privileged enough to be relocated.
  29.  * This is one.  The others are part of a stack of iteration 
  30.  * states created by nested calls to find_range etc.
  31.  *
  32.  * When this pointer is not NULL, the variables cur_row and cur_col
  33.  * MUST contain the (spreadsheet) address of my_cell.
  34.  */
  35. extern struct cell * my_cell;
  36.  
  37. #ifdef __STDC__
  38. extern void set_cell (CELLREF row, CELLREF col, char *string);
  39. extern char * new_value (CELLREF row, CELLREF col, char *string);
  40. extern char * set_new_value (CELLREF row, CELLREF col, int type, union vals *value);
  41. extern char * read_new_value (CELLREF row, CELLREF col, char *form, char *val);
  42. extern void move_cell (CELLREF rf, CELLREF cf, CELLREF rt, CELLREF ct);
  43. extern void copy_cell (CELLREF rf, CELLREF cf, CELLREF rt, CELLREF ct);
  44. extern void flush_old_value (void);
  45. extern void add_ref (CELLREF row, CELLREF col);
  46. extern void add_range_ref (struct rng *rng);
  47. extern void flush_refs (void);
  48. extern void add_ref_to (int whereto);
  49. extern void add_ref_to (int whereto);
  50. extern void shift_outside (struct rng *fm, int dn, int ov);
  51. extern void shift_formula (int r, int c, int dn, int ov);
  52. extern void cell_alarm (void);
  53. extern void flush_all_timers (void);
  54. extern void add_timer_ref (int whereto);
  55. extern void init_refs (void);
  56. extern void push_refs (struct ref_fm *ref);
  57. extern void push_cell (CELLREF row, CELLREF col);
  58. extern int eval_next_cell (void);
  59. extern char * new_var_value (char *v_name, int v_namelen, char *v_newval);
  60. extern void for_all_vars (void (*func) (char *, struct var *));
  61. extern struct var * find_or_make_var (char *string, int len);
  62. extern struct var * find_var (char *string, int len);
  63. extern void add_var_ref (void * vvar);
  64. extern void flush_variables (void);
  65.  
  66. #else
  67. extern void set_cell ();
  68. extern char * new_value ();
  69. extern char * set_new_value ();
  70. extern char * read_new_value ();
  71. extern void move_cell ();
  72. extern void copy_cell ();
  73. extern void flush_old_value ();
  74. extern void add_ref ();
  75. extern void add_range_ref ();
  76. extern void flush_refs ();
  77. extern void add_ref_to ();
  78. extern void add_ref_to ();
  79. extern void shift_outside ();
  80. extern void shift_formula ();
  81. extern void cell_alarm ();
  82. extern void flush_all_timers ();
  83. extern void add_timer_ref ();
  84. extern void init_refs ();
  85. extern void push_refs ();
  86. extern void push_cell ();
  87. extern int eval_next_cell ();
  88. extern char * new_var_value ();
  89. extern void for_all_vars ();
  90. extern struct var * find_or_make_var ();
  91. extern struct var * find_var ();
  92. extern void add_var_ref ();
  93. extern void flush_variables ();
  94.  
  95. #endif
  96.  
  97.  
  98. #endif
  99.